package view;


import java.awt.Color;
import java.awt.Graphics;
import java.awt.Rectangle;
import java.awt.event.MouseEvent;
import java.awt.event.MouseListener;
import java.awt.event.MouseWheelEvent;
import java.awt.event.MouseWheelListener;

import javax.swing.JPanel;

import model.CTFModel;

class WoobyCTFMapEditorMainPanel extends JPanel implements MouseListener, MouseWheelListener {

	CTFModel model;
	
	public WoobyCTFMapEditorMainPanel(CTFModel model) {
		this.model = model;
		addMouseListener(this);
		addMouseWheelListener(this);
	}
	
	@Override public void paintComponent(Graphics g) {
		super.paintComponent(g);
		
		g.setColor(Color.BLACK);
		g.fillRect(0, 0, 1000, 1000);
		//Rectangle r = g.getClipBounds();
		//System.out.println("(" + r.getWidth() + "," + r.getHeight() + ")");
	}
	
	@Override
	public void mouseClicked(MouseEvent arg0) {
		// TODO Auto-generated method stub

	}

	@Override
	public void mouseEntered(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseExited(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mousePressed(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseReleased(MouseEvent arg0) {
		// TODO Auto-generated method stub
		
	}

	@Override
	public void mouseWheelMoved(MouseWheelEvent e) {
		//System.out.println(e.getWheelRotation());
		
	}

}
